﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace DTO
{
    [DataContract]
    public class AdmCharacteristic: CharacteristicBase
    {
        [DataMember]
        public AdmSection Section { get; set; }

        [DataMember]
        public AdmUnit Unit { get; set; }

        [DataMember]
        public List<AdmResponsible> Responsibles { get; set; }

        [DataMember]
        public int IDTerm { get; set; }

        [DataMember]
        public bool Visibility { get; set; }

        [DataMember]
        public int IDCharacteristicTerm { get; set; }

        [DataMember]
        public double? BottomLimit { get; set; }

        [DataMember]
        public double? TopLimit { get; set; }

        [DataMember]
        public bool IndexRequired { get; set; }

        [DataMember]
        public int VolumeValidPeriod { get; set; }

        [DataMember]
        public int? IDPrevCharacteristicTerm { get; set; }

        [DataMember]
        public int IDCategorySectionTerm { get; set; }

        public AdmCategory GetCategory()
        {
            return this.Category as AdmCategory;
        }
    }
}
